0&&"undefined"!=typeof wp&&void 0!==wp.mediaelement&&"function"==typeof wp.mediaelement.initialize&&(wp.mediaelement.initialize(),n(window).trigger("resize")),t.find(".et-waypoint, .et_pb_circle_counter, .et_pb_number_counter").length>0&&t.find(".et-waypoint, .et_pb_circle_counter, .et_pb_number_counter").each(function(){var t=n(this);t.hasClass("et_pb_circle_counter")&&window.et_pb_reinit_circle_counters(t),t.hasClass("et_pb_number_counter")&&window.et_pb_reinit_number_counters(t),t.find(".et_pb_counter_amount").length>0&&t.find(".et_pb_counter_amount").each(function(){window.et_bar_counters_init(n(this))}),n(this).css({opacity:"1"}),window.et_reinit_waypoint_modules()}),t.find(".et_pb_slider").length>0&&t.find(".et_pb_slider").each(function(){et_pb_slider_init(n(this))}),t.on("click",".et_pb_video_overlay",function(t){t.preventDefault(),et_pb_play_overlayed_video(n(this))}),t.fitVids({customSelector:"iframe[src^='http://www.hulu.com'], iframe[src^='http://www.dailymotion.com'], iframe[src^='http://www.funnyordie.com'], iframe[src^='https://embed-ssl.ted.com'], iframe[src^='http://embed.revision3.com'], iframe[src^='https://flickr.com'], iframe[src^='http://blip.tv'], iframe[src^='http://www.collegehumor.com']"}),t.fadeTo("slow",1),"function"==typeof window.et_shortcodes_init&&window.et_shortcodes_init(t),x(),n("html, body").animate({scrollTop:t.offset().top-(n("#main-header").innerHeight()+n("#top-header").innerHeight()+50)});var r=t.find(".et_pb_grid_item");r.length&&et_pb_set_responsive_grid(n(r.parent().get(0)),".et_pb_grid_item")}window.et_calc_fullscreen_section=function(t,e){var r="object"===(void 0===t?"undefined":i(t))&&"resize"===t.type,o=n(s),a=e||n(this),u=a.index(".et_pb_fullscreen"),c=r&&void 0!==Tt[u]&&t.target.window_width>Tt[u]?800:0;Tt[u]=o.width(),void 0!==Mt[u]&&clearTimeout(Mt[u]),Mt[u]=setTimeout(function(){var t=n("body"),e=n(".et-l--header:first"),r=e.length>0?e.height():0,i=a.length,u=a.index(".et_pb_fullwidth_header"),c=i?a.offset():{},l=a.children(".et_pb_fullwidth_header_container"),f=l.children(".header-content-container"),d=l.children(".header-image-container"),p=s.innerHeight||o.height(),_=s.jQuery("#wpadminbar"),h=_.length,v=h?_.height():0,b=n("#top-header"),g=b.length,m=g?b.height():0,y=n("#main-header"),w=y.length,x=w?y.outerHeight():0,C=It(),j=o.width()<782,O=o.width()>980,k=(o.width()<=980&&o.width(),o.width(),v+r+m+(window.et_is_vertical_nav&&O?0:x)),S=void 0!==c.top&&c.top<=k,A=s.jQuery(".edit-post-header"),E=s.jQuery(".edit-post-layout__footer");y.attr("data-height-onload")&&(x=parseFloat(y.attr("data-height-onload"))),h&&(j?S&&(p-=v):p-=v),A.length>0&&(p-=A.outerHeight()),E.length>0&&(p-=E.outerHeight()),g&&O&&(N&&!window.et_is_vertical_nav?S||(p-=m):!window.et_is_fixed_nav||window.et_is_vertical_nav?S&&(p-=m):p-=m),w&&(O?N&&!window.et_is_vertical_nav?S||(p-=C):window.et_is_fixed_nav&&!window.et_is_vertical_nav?p-=S?x:C:window.et_is_fixed_nav||window.et_is_vertical_nav||S&&(p-=x):S&&(p-=x)),t.hasClass("et_transparent_nav")&&t.hasClass("et_hide_nav")&&0===u&&a.css("padding-top","");var I=parseInt(a.css("borderTopWidth"));I&&(p-=I);var T=parseInt(a.css("borderBottomWidth"));if(T&&(p-=T),r>0&&0===u&&0===a.closest(e).length&&(p-=r),a.css("min-height",p+"px"),l.css("min-height",p+"px"),l.hasClass("center")&&f.hasClass("bottom")&&d.hasClass("bottom")&&l.addClass("bottom-bottom"),l.hasClass("center")&&f.hasClass("center")&&d.hasClass("center")&&l.addClass("center-center"),l.hasClass("center")&&f.hasClass("center")&&d.hasClass("bottom")){l.addClass("center-bottom");var M=p-d.outerHeight(!0);M>0&&f.css("min-height",M+"px").css("height","10px")}l.hasClass("center")&&f.hasClass("bottom")&&d.hasClass("center")&&l.addClass("bottom-center"),(l.hasClass("left")||l.hasClass("right"))&&!f.length&&d.length&&l.css("justify-content","flex-end"),l.hasClass("center")&&f.hasClass("bottom")&&!d.length&&f.find(".header-content").css("margin-bottom","80px"),f.hasClass("bottom")&&d.hasClass("center")&&(d.find(".header-image").css("margin-bottom","80px"),d.css("align-self","flex-end"));var P=0;f.length&&(P+=f.outerHeight()),d.length&&(P+=d.outerHeight()),P>p&&(a.css("min-height",P+"px"),l.css("min-height",P+"px")),d.hasClass("bottom")&&(P980,c=n(this).parents("section"),l=c.offset(),f=n("#wpadminbar"),d=n("#main-header"),_=f.length&&!i?f.height():0,h=window.et_is_fixed_nav&&s?q.height():0,v=void 0===d.attr("data-height-onload")?0:d.attr("data-height-onload"),b=d.height()===It()||!s||!window.et_is_fixed_nav||o||a?0:It()-parseFloat(v),g=l.top+c.outerHeight(!0)+b-(_+h+It());if(!p&&window.et_is_fixed_nav&&o){var m=d.clone().addClass("et-disabled-animations et-fixed-header").css("visibility","hidden").appendTo(r);g+=It()-m.height(),m.remove()}if(c.length){n("html, body").animate({scrollTop:g},{duration:800})}},window.et_load_event_fired?zt():n(window).load(function(){zt()}),n(".et_section_specialty").length&&n(".et_section_specialty").each(function(){n(this).find(".et_pb_row").find(">.et_pb_column:not(.et_pb_specialty_column)").addClass("et_pb_column_single")}),n(".et_pb_section_parallax").length&&n(".et_pb_map").length&&n("body").addClass("parallax-map-support"),window.et_pb_custom&&n(".et_pb_widget_area "+window.et_pb_custom.widget_search_selector).each(function(){var t=n(this),e=t.find('input[type="submit"]'),r=e.attr("value"),i=t.find("button"),o=i.text(),a=!(!e.length&&!i.length);(t.find('input[type="text"]').length||t.find('input[type="search"]').length)&&(a||t.addClass("et-no-submit-button"),t.width()<150&&t.addClass("et-narrow-wrapper"),!e.length||void 0!==r&&""!==r||(e.remove(),t.addClass("et-no-submit-button")),!i.length||void 0!==o&&""!==o||(i.remove(),t.addClass("et-no-submit-button")))}),n("body").on("click",".et_pb_ajax_pagination_container .wp-pagenavi a,.et_pb_ajax_pagination_container .pagination a",function(){var e,r=n(this),i=r.attr("href"),o=window.location.href,s=r.closest(".et_pb_module").attr("class").split(" "),u="",c=["et_animated","infinite","et-waypoint","fade","fadeTop","fadeRight","fadeBottom","fadeLeft","slide","slideTop","slideRight","slideBottom","slideLeft","bounce","bounceTop","bounceRight","bounceBottom","bounceLeft","zoom","zoomTop","zoomRight","zoomBottom","zoomLeft","flip","flipTop","flipRight","flipBottom","flipLeft","fold","foldTop","foldRight","foldBottom","foldLeft","roll","rollTop","rollRight","rollBottom","rollLeft","transformAnim"];return window.et_pb_ajax_pagination_cache=window.et_pb_ajax_pagination_cache||[],n.each(s,function(t,e){-1===n.inArray(e,c)&&"et_had_animation"!==e&&""!==e.trim()&&(u+="."+e)}),yt(e=n(u)),void 0!==window.et_pb_ajax_pagination_cache[i+u]?e.fadeTo("slow",.2,function(){e.find(".et_pb_ajax_pagination_container").replaceWith(window.et_pb_ajax_pagination_cache[i+u]),Lt(e,!0),n(".et_pb_tabs").length&&window.et_pb_tabs_init(n(".et_pb_tabs"))}):(void 0===window.et_pb_ajax_pagination_cache[o+u]&&(window.et_pb_ajax_pagination_cache[o+u]=e.find(".et_pb_ajax_pagination_container")),e.fadeTo("slow",.2,function(){var r=function(r){var o=t(r),a=o.filter("#et-builder-module-design-cached-inline-styles"),s=o.find(u+" .et_pb_ajax_pagination_container").prepend(a);yt(s.find(".et_animated")),e.find(".et_pb_ajax_pagination_container").replaceWith(s),window.et_pb_ajax_pagination_cache[i+u]=s,Lt(e,!1),n(".et_pb_tabs").length&&window.et_pb_tabs_init(n(".et_pb_tabs")),n(document.body).trigger("post-load")},o={url:i,success:r,error:function(e){404===e.status&&t("body.error404").length>0&&r(e.responseText)}};a&&(o.data={et_layout_block_layout_content:ETBlockLayoutModulesScript.layoutContent},o.method="POST"),t.ajax(o)})),!1}),window.et_pb_search_init=function(t){var e=kt();X=e;var n="desktop"!==e?"-"+e:"",r=t.find(".et_pb_s"),i=t.find(".et_pb_searchsubmit"),o=t.hasClass("et_pb_text_align_right"+n)?"paddingLeft":"paddingRight",a="paddingLeft"===o?"paddingRight":"paddingLeft",s=t.hasClass("et_pb_hide_search_button"),u=i.outerHeight(),c=i.outerWidth(),l=r.innerHeight();i.css({position:"relative"}),u>l&&r.innerHeight(u),s||(r.css(a,""),r.css(o,c+10)),i.css({position:""})},window.et_pb_search_percentage_custom_margin_fix=function(t){var e=t.find(".et_pb_s").css("margin").split(" "),n={};switch(e.length){case 4:n={top:e[0],right:e[1],bottom:e[2],left:e[3]};break;case 2:n={top:e[0],right:e[1],bottom:e[0],left:e[1]};break;default:n={top:e[0],right:e[0],bottom:e[0],left:e[0]}}var r=0-parseFloat(n.left)+"px";t.find(".et_pb_searchsubmit").css({top:n.top,right:r,bottom:n.bottom})},n(".et_pb_search").length&&n(".et_pb_search").each(function(){var t=n(this);t.is(".et_pb_search_percentage_custom_margin")&&et_pb_search_percentage_custom_margin_fix(t),et_pb_search_init(t)}),window.et_pb_comments_init=function(t){var e=t.find(".comment-reply-link, .submit");e.length&&(e.addClass("et_pb_button"),void 0!==t.attr("data-icon")&&""!==t.attr("data-icon")&&(e.attr("data-icon",t.attr("data-icon")),e.addClass("et_pb_custom_button_icon")),void 0!==t.attr("data-icon-tablet")&&""!==t.attr("data-icon-tablet")&&(e.attr("data-icon-tablet",t.attr("data-icon-tablet")),e.addClass("et_pb_custom_button_icon")),void 0!==t.attr("data-icon-phone")&&""!==t.attr("data-icon-phone")&&(e.attr("data-icon-phone",t.attr("data-icon-phone")),e.addClass("et_pb_custom_button_icon")))},n(".et_pb_comments_module").length&&n(".et_pb_comments_module").each(function(){var t=n(this);et_pb_comments_init(t)});var Wt=document.onreadystatechange||function(){};function Vt(t){t.find("[data-conditional-logic]").each(function(){for(var e=n(this),r=e.data("conditional-logic"),i=e.data("conditional-relation"),o=[],a=0;a=b||o.push(!0))}}}}e.hide();var g=e.find('input[type="text"]'),m=g.attr("pattern");g.attr("novalidate","novalidate"),g.attr("data-pattern",m),g.removeAttr("pattern"),"all"===i&&r.length===o.length&&(e.show(),g.removeAttr("novalidate"),g.attr("pattern",g.data("pattern"))),"any"===i&&00){for(var Rt=0,Bt=0;Bt0&&setTimeout(function(){n("#et_fix_html_margin").remove(),n("",{id:"et_fix_html_margin",text:"html.js.et-fb-top-html { margin-top: 0px !important; }"}).appendTo("head")},0))}function y(t){var e=t.find(".et_pb_menu__wrap:first"),n=t.find(".et_pb_menu__search-container:first"),r=t.find(".et_pb_menu__search-input:first");n.hasClass("et_pb_is_animating")||(e.removeClass("et_pb_menu__wrap--hidden").addClass("et_pb_menu__wrap--visible"),n.removeClass("et_pb_menu__search-container--visible").addClass("et_pb_menu__search-container--hidden et_pb_is_animating"),r.blur(),setTimeout(function(){n.removeClass("et_pb_is_animating").addClass("et_pb_menu__search-container--disabled")},1e3))}n(document).ready(function(){n(".et_pb_top_inside_divider.et-no-transition, .et_pb_bottom_inside_divider.et-no-transition").removeClass("et-no-transition").each(function(){etFixDividerSpacing(n(this))}),setTimeout(function(){(window.et_pb_box_shadow_elements||[]).map(et_pb_box_shadow_apply_overlay)},0)}),n(window).load(function(){var t=n("body");if(window.et_load_event_fired=!0,t.hasClass("safari")){var e=t.css("display"),r="initial"===e?"block":"initial";if(t.css({display:r}),setTimeout(function(){t.css({display:e})},0),t.hasClass("woocommerce-page")&&t.hasClass("single-product")){var i=n(".woocommerce div.product div.images.woocommerce-product-gallery");if(0===i.length)return;var o=parseInt(i[0].style.opacity);if(!o)return;i.css({opacity:o-.09}),setTimeout(function(){i.css({opacity:o})},0)}}n(".et_pb_module #rating").length>0&&n(".et_pb_module #rating").each(function(){window.et_pb_init_woo_star_rating(n(this))}),n(".et_pb_woo_custom_button_icon").length>0&&n(".et_pb_woo_custom_button_icon").each(function(){var t=n(this),e=t.data("button-class"),r=t.find("."+e),i=t.attr("data-button-icon"),o=t.attr("data-button-icon-tablet"),a=t.attr("data-button-icon-phone");r.addClass("et_pb_promo_button et_pb_button"),(i||o||a)&&(r.addClass("et_pb_custom_button_icon"),r.attr("data-icon",i),r.attr("data-icon-tablet",o),r.attr("data-icon-phone",a))}),n(".et_pb_wc_meta").length>0&&n(".et_pb_wc_meta").each(function(){var t=n(this);""===t.find(".product_meta span:visible").text()&&t.addClass("et_pb_wc_meta_empty")})}),n(document).ready(function(){if(void 0!==MutationObserver)for(var t=function(t){return t.filter(function(){return!n(this).is(":visible")}).length},e=n(".et_pb_section"),r=function(t){var e=void 0!==n.uniqueSort?n.uniqueSort:n.unique,r=n([]);return t.each(function(){r=r.add(n(this).parents())}),e(r.get())}(e),i=t(e),o=new MutationObserver(window.et_pb_debounce(function(){var r=t(e);r .et_pb_menu__logo-wrap:first, .et_pb_menu_inner_container > .et_pb_menu__logo-wrap:first"),a=n(window).width()<=980;if(!r.hasClass("et_pb_is_animating")){if(e.find(".mobile_nav.opened").removeClass("opened").addClass("closed"),e.find(".et_mobile_menu").hide(),e.removeClass("et_pb_menu__wrap--visible").addClass("et_pb_menu__wrap--hidden"),r.removeClass("et_pb_menu__search-container--hidden et_pb_menu__search-container--disabled").addClass("et_pb_menu__search-container--visible et_pb_is_animating"),r.css("padding-top",0),t.hasClass("et_pb_menu--style-left_aligned")||t.hasClass("et_pb_fullwidth_menu--style-left_aligned"))r.css("padding-left",o.width());else{var s=o.height();r.css("padding-left",0),(a||t.hasClass("et_pb_menu--style-centered")||t.hasClass("et_pb_fullwidth_menu--style-centered"))&&r.css("padding-top",s>0?s+30:0)}i.css("font-size",t.find(".et-menu-nav li a:first").css("font-size")),i.focus(),setTimeout(function(){e.addClass("et_pb_no_animation"),r.addClass("et_pb_no_animation").removeClass("et_pb_is_animating")},1e3)}}(n(this).closest(".et_pb_module"))}),n(document).on("click",".et_pb_menu__close-search-button",function(){y(n(this).closest(".et_pb_module"))}),n(document).on("blur",".et_pb_menu__search-input",function(){y(n(this).closest(".et_pb_module"))}),n(document).ready(function(){n(".et_pb_menu--style-inline_centered_logo, .et_pb_fullwidth_menu--style-inline_centered_logo").each(function(){!function(t){var e=t.find(".et_pb_menu__logo-wrap:first");if(0!==e.length){var r=t.find(".et_pb_menu__menu:first");if(!(0===r.length||r.find(".et_pb_menu__logo").length>0)){var i=window.et_pb_menu_inject_inline_centered_logo(r.get(0));null!==i&&n(i).empty().append(e.clone())}}}(n(this))}),Object(e.H)(window.lazySizes)||n(document).on("lazyloaded",function(t){var r=n(t.target);r.is("iframe")&&Object(e.H)(r.attr("name"))&&(r.attr("src",r.attr("data-src")),r.parent().fitVids())})}),n(document).on("ready",window.et_pb_reposition_menu_module_dropdowns),n(window).on("resize",window.et_pb_reposition_menu_module_dropdowns);var w={contexts:["content","attrs","styles","classes","visibility"],screenMode:void 0,windowWidth:void 0,init:function(t,e){w.screenMode=t,w.windowWidth=e,n(".et_multi_view__hover_selector").removeClass("et_multi_view__hover_selector"),w.getElements().each(function(){var t=n(this);if(!w.isBuilderElement(t)){var e=w.getData(t);w.normalStateHandler(e),e.$hoverSelector&&e.$hoverSelector.length&&e.$hoverSelector.addClass("et_multi_view__hover_selector")}}),w.isTouchDevice()?(n("body").off("touchstart",w.touchStateHandler),n("body").on("touchstart",w.touchStateHandler)):(n(".et_multi_view__hover_selector").off("mouseenter mouseleave",w.hoverStateHandler),n(".et_multi_view__hover_selector").on("mouseenter mouseleave",w.hoverStateHandler),n("#main-header, #main-footer").off("mouseenter",w.resetHoverState),n("#main-header, #main-footer").on("mouseenter",w.resetHoverState))},normalStateHandler:function(t){t&&!w.isEmptyObject(t.normalState)&&w.callbackHandlerDefault(t.normalState,t.$target,t.$source,t.slug)},touchStateHandler:function(t){var e=n(t.target);n(t.target).hasClass("et_multi_view__hover_selector")||(e=n(t.target).closest(".et_multi_view__hover_selector")),e.hasClass("et_multi_view__hovered")?w.resetHoverState(e):w.setHoverState(e)},hoverStateHandler:function(t){var e=n(t.target);n(t.target).hasClass("et_multi_view__hover_selector")||(e=n(t.target).closest(".et_multi_view__hover_selector")),"mouseenter"!==t.type||e.hasClass("et_multi_view__hovered")?"mouseleave"===t.type&&e.hasClass("et_multi_view__hovered")&&w.resetHoverState(e):w.setHoverState(e)},setHoverState:function(t){w.resetHoverState();var e=[];t.data("etMultiView")&&e.push(w.getData(t)),t.find("[data-et-multi-view]").each(function(){var t=n(this);w.isBuilderElement(t)||e.push(w.getData(t))});for(var r=0;r980?"desktop":t>767?"tablet":"phone"},getWindowWidth:function(){return w.windowWidth?w.windowWidth:o?n(".et-core-frame").width():n(window).width()},getElements:function(){return o?n(".et-core-frame").contents().find("[data-et-multi-view]"):n("[data-et-multi-view]")},isBuilderElement:function(t){return t.closest("#et-fb-app").length>0},isTouchDevice:function(){return"ontouchstart"in window||navigator.msMaxTouchPoints}};!function(){if(o)n(window).on("et_fb_preview_mode_changed",function(t,e){"et_fb_preview_mode_changed"===t.type&&w.init(e)});else{n(document).ready(function(){w.init()}),n(window).on("orientationchange",function(t){w.init()});var t=null;n(window).on("resize",function(e){e.originalEvent&&e.originalEvent.isTrusted&&(clearTimeout(t),t=setTimeout(function(){w.init(void 0,n(window).width())},200))})}}(),o&&n(document).ready(function(){n(document).on("submit",".et-fb-root-ancestor-sibling form",function(t){t.preventDefault()}),n(document).on("click",'.et-fb-root-ancestor-sibling a, .et-fb-root-ancestor-sibling button, .et-fb-root-ancestor-sibling input[type="submit"]',function(t){t.preventDefault()})}),window.etInitWooReviewsRatingStars=function(){n('select[name="rating"]').each(function(){n(this).prev(".stars").remove(),n(this).hide().before('\t\t\t\t\t\t\t\t\t\t\t\t\t1\t\t\t\t\t\t\t2\t\t\t\t\t\t\t3\t\t\t\t\t\t\t4\t\t\t\t\t\t\t5\t\t\t\t\t\t\t\t\t\t\t
')})}}(t)}.call(this,n(26))},function(t,e,n){"use strict";(function(t,e){var r=n(4),i=n(1041),o=n(783),a=n(764),s=n(529),u=n(755),c=n(780),l=n(240),f=n(509);function d(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0,_=Object(r.F)(window.ET_Builder)&&Object(r.ab)(window.ET_Builder)>1&&!p,h=function(){return e(window).width()},v=function(t,e){return{id:e,effects:(t||[]).map(s.c)}},b=new o.a(i,function(t,e){return'body[data-scroll-step="'+t+'"] '+e}),g=!1,m=function(){var t=window.et_pb_motion_elements||[];if(!_||Object(r.y)(t))return t;var e={};return Object(r.n)(["desktop","tablet","phone"],function(t){e[t]=Object(r.k)(window.et_pb_motion_elements[t],function(t){return Object(r.j)(t.id,"_tb_header")||Object(r.j)(t.id,"_tb_body")||Object(r.j)(t.id,"_tb_footer")})}),e},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hide",n=m(),i=Object(r.p)(n,"desktop",[]);Object(r.y)(i)||Object(r.n)(i,function(n){var r=e(n.id);"hide"===t?r.addClass("et-pb-before-scroll-animation"):(r.removeClass("et-pb-before-scroll-animation et_animated et-waypoint"),r.addClass("et_had_animation"))})},w=function(t){return t<=u.a.responsiveLandscape.phone?"phone":t<=u.a.responsiveLandscape.tablet?"tablet":"desktop"},x=function(t,e){var n=Object(r.q)(t[e]||[],"id");Object(r.M)(n,v).forEach(function(t){var e=t.id,i=t.effects;if(!Object(r.y)(i)&&Object(r.x)(i)){var o=Object(r.p)(n,[e,"0"],{}),s=Object(r.p)(o,"trigger_start","middle"),u={start:s,end:s};if("on"===o.grid_motion){if(!o.child_slug){var c=function(t,e){var n=parseInt(t.children_count),r={};if(n>0)for(var i=0;i0&&r.each(function(){var t=e(this);0===t.closest("#et-boc").length&&t.wrap(''),0===t.closest(".et-l").length&&t.wrap('')})}).call(this,r(44))}});
(function($){
$(document).ready(function(){
var user_agent=navigator.userAgent;
var is_opera_edge;
var browser=user_agent.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))/i)||[];
var browser_name='';
var browser_class='';
if(/trident/i.test(browser[0])){
browser_name='ie';
}else if(browser[0]==='Chrome'){
is_opera_edge=user_agent.match(/\b(OPR|Edge)/);
if(is_opera_edge!==null){
browser_name=is_opera_edge[0].replace('OPR', 'opera');
}}
if(''===browser_name){
if('standalone' in window.navigator&&!window.navigator.standalone){
browser_name='uiwebview';
}else{
browser_name=browser[0]&&''!==browser[0] ? browser[0]:navigator.appName;
}}
browser_name=browser_name.toLowerCase();
switch(browser_name){
case 'msie' :
browser_class='ie';
break;
case 'firefox' :
browser_class='gecko';
break;
default :
browser_class=browser_name;
break;
}
if(user_agent.match(/iPhone/)){
browser_class +=' iphone';
}
$('body').addClass(browser_class);
});
})(jQuery);
(function(cc){if(cc.hasInitialised)return;var util={escapeRegExp:function(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(element,selector){var s=" ";return element.nodeType===1&&(s+element.className+s).replace(/[\n\t]/g,s).indexOf(s+selector+s)>=0},addClass:function(element,className){element.className+=" "+className},removeClass:function(element,className){var regex=new RegExp("\\b"+this.escapeRegExp(className)+"\\b");element.className=element.className.replace(regex,"")},interpolateString:function(str,callback){var marker=/{{([a-z][a-z0-9\-_]*)}}/gi;return str.replace(marker,function(matches){return callback(arguments[1])||""})},getCookie:function(name){var value="; "+document.cookie;var parts=value.split("; "+name+"=");return parts.length!=2?undefined:parts.pop().split(";").shift()},setCookie:function(name,value,expiryDays,domain,path){var exdate=new Date;exdate.setTime(exdate.getTime()+(expiryDays||365)*24*60*60*1e3);var cookie=[name+"="+value,"expires="+exdate.toGMTString(),"path="+(path||"/")];if(window.location.protocol==="https:"){cookie.push("secure=secure")}if(domain){cookie.push("domain="+domain)}document.cookie=cookie.join(";")},deepExtend:function(target,source){for(var prop in source){if(source.hasOwnProperty(prop)){if(prop in target&&this.isPlainObject(target[prop])&&this.isPlainObject(source[prop])){this.deepExtend(target[prop],source[prop])}else{target[prop]=source[prop]}}}return target},throttle:function(callback,limit){var wait=false;return function(){if(!wait){callback.apply(this,arguments);wait=true;setTimeout(function(){wait=false},limit)}}},hash:function(str){var hash=0,i,chr,len;if(str.length===0)return hash;for(i=0,len=str.length;i=128?"#000":"#fff"},getLuminance:function(hex){var num=parseInt(this.normaliseHex(hex),16),amt=38,R=(num>>16)+amt,B=(num>>8&255)+amt,G=(num&255)+amt;var newColour=(16777216+(R<255?R<1?0:R:255)*65536+(B<255?B<1?0:B:255)*256+(G<255?G<1?0:G:255)).toString(16).slice(1);return"#"+newColour},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(obj){return typeof obj==="object"&&obj!==null&&obj.constructor==Object}};cc.status={deny:"deny",allow:"allow",dismiss:"dismiss"};cc.transitionEnd=function(){var el=document.createElement("div");var trans={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var prefix in trans){if(trans.hasOwnProperty(prefix)&&typeof el.style[prefix+"ransition"]!="undefined"){return trans[prefix]}}return""}();cc.hasTransition=!!cc.transitionEnd;var __allowedStatuses=Object.keys(cc.status).map(util.escapeRegExp);cc.customStyles={};cc.Popup=function(){var defaultOptions={enabled:true,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(status){},onStatusChange:function(status,chosenBefore){},onRevokeChoice:function(){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"http://cookiesandyou.com",close:"❌"},elements:{header:' ',message:'{{message}}',messagelink:'{{message}} {{link}}',dismiss:'{{dismiss}}',allow:'{{allow}}',deny:'{{deny}}',link:'{{link}}',close:'{{close}}'},window:'\x3c!--googleoff: all--\x3e{{children}}\x3c!--googleon: all--\x3e
',revokeBtn:'Cookie Policy
',compliance:{info:'{{dismiss}}
',"opt-in":'{{dismiss}}{{allow}}
',"opt-out":'{{deny}}{{dismiss}}
'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:false,palette:null,revokable:false,animateRevokable:true,showLink:true,dismissOnScroll:false,dismissOnTimeout:false,autoOpen:true,autoAttach:true,whitelistPage:[],blacklistPage:[],overrideHTML:null};function CookiePopup(){this.initialise.apply(this,arguments)}CookiePopup.prototype.initialise=function(options){if(this.options){this.destroy()}util.deepExtend(this.options={},defaultOptions);if(util.isPlainObject(options)){util.deepExtend(this.options,options)}if(checkCallbackHooks.call(this)){this.options.enabled=false}if(arrayContainsMatches(this.options.blacklistPage,location.pathname)){this.options.enabled=false}if(arrayContainsMatches(this.options.whitelistPage,location.pathname)){this.options.enabled=true}var cookiePopup=this.options.window.replace("{{classes}}",getPopupClasses.call(this).join(" ")).replace("{{children}}",getPopupInnerMarkup.call(this));var customHTML=this.options.overrideHTML;if(typeof customHTML=="string"&&customHTML.length){cookiePopup=customHTML}if(this.options.static){var wrapper=appendMarkup.call(this,''+cookiePopup+"
");wrapper.style.display="";this.element=wrapper.firstChild;this.element.style.display="none";util.addClass(this.element,"cc-invisible")}else{this.element=appendMarkup.call(this,cookiePopup)}applyAutoDismiss.call(this);applyRevokeButton.call(this);if(this.options.autoOpen){this.autoOpen()}};CookiePopup.prototype.destroy=function(){if(this.onButtonClick&&this.element){this.element.removeEventListener("click",this.onButtonClick);this.onButtonClick=null}if(this.dismissTimeout){clearTimeout(this.dismissTimeout);this.dismissTimeout=null}if(this.onWindowScroll){window.removeEventListener("scroll",this.onWindowScroll);this.onWindowScroll=null}if(this.onMouseMove){window.removeEventListener("mousemove",this.onMouseMove);this.onMouseMove=null}if(this.element&&this.element.parentNode){this.element.parentNode.removeChild(this.element)}this.element=null;if(this.revokeBtn&&this.revokeBtn.parentNode){this.revokeBtn.parentNode.removeChild(this.revokeBtn)}this.revokeBtn=null;removeCustomStyle(this.options.palette);this.options=null};CookiePopup.prototype.open=function(callback){if(!this.element)return;if(!this.isOpen()){if(cc.hasTransition){this.fadeIn()}else{this.element.style.display=""}if(this.options.revokable){this.toggleRevokeButton()}this.options.onPopupOpen.call(this)}return this};CookiePopup.prototype.close=function(showRevoke){if(!this.element)return;if(this.isOpen()){if(cc.hasTransition){this.fadeOut()}else{this.element.style.display="none"}if(showRevoke&&this.options.revokable){this.toggleRevokeButton(true)}this.options.onPopupClose.call(this)}return this};CookiePopup.prototype.fadeIn=function(){var el=this.element;if(!cc.hasTransition||!el)return;if(this.afterTransition){afterFadeOut.call(this,el)}if(util.hasClass(el,"cc-invisible")){el.style.display="";if(this.options.static){var height=this.element.clientHeight;this.element.parentNode.style.maxHeight=height+"px"}var fadeInTimeout=20;this.openingTimeout=setTimeout(afterFadeIn.bind(this,el),fadeInTimeout)}};CookiePopup.prototype.fadeOut=function(){var el=this.element;if(!cc.hasTransition||!el)return;if(this.openingTimeout){clearTimeout(this.openingTimeout);afterFadeIn.bind(this,el)}if(!util.hasClass(el,"cc-invisible")){if(this.options.static){this.element.parentNode.style.maxHeight=""}this.afterTransition=afterFadeOut.bind(this,el);el.addEventListener(cc.transitionEnd,this.afterTransition);util.addClass(el,"cc-invisible")}};CookiePopup.prototype.isOpen=function(){return this.element&&this.element.style.display==""&&(cc.hasTransition?!util.hasClass(this.element,"cc-invisible"):true)};CookiePopup.prototype.toggleRevokeButton=function(show){if(this.revokeBtn)this.revokeBtn.style.display=show?"":"none"};CookiePopup.prototype.revokeChoice=function(preventOpen){this.options.enabled=true;this.clearStatus();this.options.onRevokeChoice.call(this);if(!preventOpen){this.autoOpen()}};CookiePopup.prototype.hasAnswered=function(options){return Object.keys(cc.status).indexOf(this.getStatus())>=0};CookiePopup.prototype.hasConsented=function(options){var val=this.getStatus();return val==cc.status.allow||val==cc.status.dismiss};CookiePopup.prototype.autoOpen=function(options){if(!this.hasAnswered()&&this.options.enabled){this.open()}else{if(this.options.revokable){this.toggleRevokeButton(true)}}};CookiePopup.prototype.setStatus=function(status){var c=this.options.cookie;var value=util.getCookie(c.name);var chosenBefore=Object.keys(cc.status).indexOf(value)>=0;if(Object.keys(cc.status).indexOf(status)>=0){util.setCookie(c.name,status,c.expiryDays,c.domain,c.path);this.options.onStatusChange.call(this,status,chosenBefore)}else{this.clearStatus()}};CookiePopup.prototype.getStatus=function(){return util.getCookie(this.options.cookie.name)};CookiePopup.prototype.clearStatus=function(){var c=this.options.cookie;util.setCookie(c.name,"",-1,c.domain,c.path)};function afterFadeIn(el){this.openingTimeout=null;util.removeClass(el,"cc-invisible")}function afterFadeOut(el){el.style.display="none";el.removeEventListener(cc.transitionEnd,this.afterTransition);this.afterTransition=null}function checkCallbackHooks(){var complete=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled){complete(cc.status.deny);return true}if(window.CookiesOK||window.navigator.CookiesOK){complete(cc.status.allow);return true}var allowed=Object.keys(cc.status);var answer=this.getStatus();var match=allowed.indexOf(answer)>=0;if(match){complete(answer)}return match}function getPositionClasses(){var positions=this.options.position.split("-");var classes=[];positions.forEach(function(cur){classes.push("cc-"+cur)});return classes}function getPopupClasses(){var opts=this.options;var positionStyle=opts.position=="top"||opts.position=="bottom"?"banner":"floating";if(util.isMobile()){positionStyle="floating"}var classes=["cc-"+positionStyle,"cc-type-"+opts.type,"cc-theme-"+opts.theme];if(opts.static){classes.push("cc-static")}classes.push.apply(classes,getPositionClasses.call(this));var didAttach=attachCustomPalette.call(this,this.options.palette);if(this.customStyleSelector){classes.push(this.customStyleSelector)}return classes}function getPopupInnerMarkup(){var interpolated={};var opts=this.options;if(!opts.showLink){opts.elements.link="";opts.elements.messagelink=opts.elements.message}Object.keys(opts.elements).forEach(function(prop){interpolated[prop]=util.interpolateString(opts.elements[prop],function(name){var str=opts.content[name];return name&&typeof str=="string"&&str.length?str:""})});var complianceType=opts.compliance[opts.type];if(!complianceType){complianceType=opts.compliance.info}interpolated.compliance=util.interpolateString(complianceType,function(name){return interpolated[name]});var layout=opts.layouts[opts.layout];if(!layout){layout=opts.layouts.basic}return util.interpolateString(layout,function(match){return interpolated[match]})}function appendMarkup(markup){var opts=this.options;var div=document.createElement("div");var cont=opts.container&&opts.container.nodeType===1?opts.container:document.body;div.innerHTML=markup;var el=div.children[0];el.style.display="none";if(util.hasClass(el,"cc-window")&&cc.hasTransition){util.addClass(el,"cc-invisible")}this.onButtonClick=handleButtonClick.bind(this);el.addEventListener("click",this.onButtonClick);if(opts.autoAttach){if(!cont.firstChild){cont.appendChild(el)}else{cont.insertBefore(el,cont.firstChild)}}return el}function handleButtonClick(event){var targ=event.target;if(util.hasClass(targ,"cc-btn")){var matches=targ.className.match(new RegExp("\\bcc-("+__allowedStatuses.join("|")+")\\b"));var match=matches&&matches[1]||false;if(match){this.setStatus(match);this.close(true)}}if(util.hasClass(targ,"cc-close")){this.setStatus(cc.status.dismiss);this.close(true)}if(util.hasClass(targ,"cc-revoke")){this.revokeChoice()}}function attachCustomPalette(palette){var hash=util.hash(JSON.stringify(palette));var selector="cc-color-override-"+hash;var isValid=util.isPlainObject(palette);this.customStyleSelector=isValid?selector:null;if(isValid){addCustomStyle(hash,palette,"."+selector)}return isValid}function addCustomStyle(hash,palette,prefix){if(cc.customStyles[hash]){++cc.customStyles[hash].references;return}var colorStyles={};var popup=palette.popup;var button=palette.button;var highlight=palette.highlight;if(popup){popup.text=popup.text?popup.text:util.getContrast(popup.background);popup.link=popup.link?popup.link:popup.text;colorStyles[prefix+".cc-window"]=["color: "+popup.text,"background-color: "+popup.background];colorStyles[prefix+".cc-revoke"]=["color: "+popup.text,"background-color: "+popup.background];colorStyles[prefix+" .cc-link,"+prefix+" .cc-link:active,"+prefix+" .cc-link:visited"]=["color: "+popup.link];if(button){button.text=button.text?button.text:util.getContrast(button.background);button.border=button.border?button.border:"transparent";colorStyles[prefix+" .cc-btn"]=["color: "+button.text,"border-color: "+button.border,"background-color: "+button.background];if(button.background!="transparent")colorStyles[prefix+" .cc-btn:hover, "+prefix+" .cc-btn:focus"]=["background-color: "+getHoverColour(button.background)];if(highlight){highlight.text=highlight.text?highlight.text:util.getContrast(highlight.background);highlight.border=highlight.border?highlight.border:"transparent";colorStyles[prefix+" .cc-highlight .cc-btn:first-child"]=["border-color: "+highlight.border,"background-color: "+highlight.background]}else{colorStyles[prefix+" .cc-highlight .cc-btn:first-child"]=[]}}}var style=document.createElement("style");document.head.appendChild(style);cc.customStyles[hash]={references:1,element:style.sheet};var ruleIndex=-1;for(var prop in colorStyles){if(colorStyles.hasOwnProperty(prop)){style.sheet.insertRule(prop+"{"+colorStyles[prop].join(";")+"}",++ruleIndex)}}}function getHoverColour(hex){hex=util.normaliseHex(hex);if(hex=="000000"){return"#222"}return util.getLuminance(hex)}function removeCustomStyle(palette){if(util.isPlainObject(palette)){var hash=util.hash(JSON.stringify(palette));var customStyle=cc.customStyles[hash];if(customStyle&&!--customStyle.references){var styleNode=customStyle.element.ownerNode;if(styleNode&&styleNode.parentNode){styleNode.parentNode.removeChild(styleNode)}cc.customStyles[hash]=null}}}function arrayContainsMatches(array,search){for(var i=0,l=array.length;i=0){this.dismissTimeout=window.setTimeout(function(){setStatus(cc.status.dismiss)},Math.floor(delay))}var scrollRange=this.options.dismissOnScroll;if(typeof scrollRange=="number"&&scrollRange>=0){var onWindowScroll=function(evt){if(window.pageYOffset>Math.floor(scrollRange)){setStatus(cc.status.dismiss);window.removeEventListener("scroll",onWindowScroll);this.onWindowScroll=null}};this.onWindowScroll=onWindowScroll;window.addEventListener("scroll",onWindowScroll)}}function applyRevokeButton(){if(this.options.type!="info")this.options.revokable=true;if(util.isMobile())this.options.animateRevokable=false;if(this.options.revokable){var classes=getPositionClasses.call(this);if(this.options.animateRevokable){classes.push("cc-animate")}if(this.customStyleSelector){classes.push(this.customStyleSelector)}var revokeBtn=this.options.revokeBtn.replace("{{classes}}",classes.join(" "));this.revokeBtn=appendMarkup.call(this,revokeBtn);var btn=this.revokeBtn;if(this.options.animateRevokable){var wait=false;var onMouseMove=util.throttle(function(evt){var active=false;var minY=20;var maxY=window.innerHeight-20;if(util.hasClass(btn,"cc-top")&&evt.clientYmaxY)active=true;if(active){if(!util.hasClass(btn,"cc-active")){util.addClass(btn,"cc-active")}}else{if(util.hasClass(btn,"cc-active")){util.removeClass(btn,"cc-active")}}},200);this.onMouseMove=onMouseMove;window.addEventListener("mousemove",onMouseMove)}}}return CookiePopup}();cc.Location=function(){var defaultOptions={timeout:5e3,services:["freegeoip","ipinfo","maxmind"],serviceDefinitions:{freegeoip:function(){return{url:"//freegeoip.net/json/?callback={callback}",isScript:true,callback:function(done,response){try{var json=JSON.parse(response);return json.error?toError(json):{code:json.country_code}}catch(err){return toError({error:"Invalid response ("+err+")"})}}}},ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(done,response){try{var json=JSON.parse(response);return json.error?toError(json):{code:json.country}}catch(err){return toError({error:"Invalid response ("+err+")"})}}}},ipinfodb:function(options){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:true,callback:function(done,response){try{var json=JSON.parse(response);return json.statusCode=="ERROR"?toError({error:json.statusMessage}):{code:json.countryCode}}catch(err){return toError({error:"Invalid response ("+err+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:true,callback:function(done){if(!window.geoip2){done(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"));return}geoip2.country(function(location){try{done({code:location.country.iso_code})}catch(err){done(toError(err))}},function(err){done(toError(err))})}}}}};function Location(options){util.deepExtend(this.options={},defaultOptions);if(util.isPlainObject(options)){util.deepExtend(this.options,options)}this.currentServiceIndex=-1}Location.prototype.getNextService=function(){var service;do{service=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex3){onComplete(xhr)}}}xhr.send(postData)}function toError(obj){return new Error("Error ["+(obj.code||"UNKNOWN")+"]: "+obj.error)}return Location}();cc.Law=function(){var defaultOptions={regionalLaw:true,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","SI","ES","SE","GB","UK"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};function Law(options){this.initialise.apply(this,arguments)}Law.prototype.initialise=function(options){util.deepExtend(this.options={},defaultOptions);if(util.isPlainObject(options)){util.deepExtend(this.options,options)}};Law.prototype.get=function(countryCode){var opts=this.options;return{hasLaw:opts.hasLaw.indexOf(countryCode)>=0,revokable:opts.revokable.indexOf(countryCode)>=0,explicitAction:opts.explicitAction.indexOf(countryCode)>=0}};Law.prototype.applyLaw=function(options,countryCode){var country=this.get(countryCode);if(!country.hasLaw){options.enabled=false}if(this.options.regionalLaw){if(country.revokable){options.revokable=true}if(country.explicitAction){options.dismissOnScroll=false;options.dismissOnTimeout=false}}return options};return Law}();cc.initialise=function(options,complete,error){var law=new cc.Law(options.law);if(!complete)complete=function(){};if(!error)error=function(){};cc.getCountryCode(options,function(result){delete options.law;delete options.location;if(result.code){options=law.applyLaw(options,result.code)}complete(new cc.Popup(options))},function(err){delete options.law;delete options.location;error(err,new cc.Popup(options))})};cc.getCountryCode=function(options,complete,error){if(options.law&&options.law.countryCode){complete({code:options.law.countryCode});return}if(options.location){var locator=new cc.Location(options.location);locator.locate(function(serviceResult){complete(serviceResult||{})},error);return}complete({})};cc.utils=util;cc.hasInitialised=true;window.cookieconsent=cc})(window.cookieconsent||{});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["postscribe"]=e():t["postscribe"]=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={"exports":{},"id":n,"loaded":!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var o=r(1),i=n(o);t.exports=i["default"]},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}function i(){}function a(){var t=m.shift();if(t){var e=h.last(t);e.afterDequeue(),t.stream=s.apply(void 0,t),e.afterStreamStart()}}function s(t,e,r){function n(t){t=r.beforeWrite(t),g.write(t),r.afterWrite(t)}g=new p["default"](t,r),g.id=y++,g.name=r.name||g.id,u.streams[g.name]=g;var o=t.ownerDocument,s={"close":o.close,"open":o.open,"write":o.write,"writeln":o.writeln};c(o,{"close":i,"open":i,"write":function(){for(var t=arguments.length,e=Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:null,n=d+e;f.existy(r)&&""!==r?t.setAttribute(n,r):t.removeAttribute(n)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};i(this,t),this.root=e,this.options=r,this.doc=e.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new l["default"]("",{"autoFix":r.autoFix}),this.actuals=[e],this.proxyHistory="",this.proxyRoot=this.doc.createElement(e.nodeName),this.scriptStack=[],this.writeQueue=[],s(this.proxyRoot,"proxyof",0)}return t.prototype.write=function(){var t;for((t=this.writeQueue).push.apply(t,arguments);!this.deferredRemote&&this.writeQueue.length;){var e=this.writeQueue.shift();f.isFunction(e)?this._callFunction(e):this._writeImpl(e)}},t.prototype._callFunction=function(t){var e={"type":"function","value":t.name||t.toString()};this._onScriptStart(e),t.call(this.win,this.doc),this._onScriptDone(e)},t.prototype._writeImpl=function(t){this.parser.append(t);for(var e=void 0,r=void 0,n=void 0,o=[];(e=this.parser.readToken())&&!(r=f.isScript(e))&&!(n=f.isStyle(e));)e=this.options.beforeWriteToken(e),e&&o.push(e);o.length>0&&this._writeStaticTokens(o),r&&this._handleScriptToken(e),n&&this._handleStyleToken(e)},t.prototype._writeStaticTokens=function(t){var e=this._buildChunk(t);return e.actual?(e.html=this.proxyHistory+e.actual,this.proxyHistory+=e.proxy,this.proxyRoot.innerHTML=e.html,h&&(e.proxyInnerHTML=this.proxyRoot.innerHTML),this._walkChunk(),h&&(e.actualInnerHTML=this.root.innerHTML),e):null},t.prototype._buildChunk=function(t){for(var e=this.actuals.length,r=[],n=[],o=[],i=t.length,a=0;a)/," "+d+"id="+c+" $1")),s.attrs.id!==m&&s.attrs.id!==y&&o.push("atomicTag"===s.type?"":"<"+s.tagName+" "+d+"proxyof="+c+(s.unary?" />":">"))}}else n.push(u),o.push("endTag"===s.type?u:"")}return{"tokens":t,"raw":r.join(""),"actual":n.join(""),"proxy":o.join("")}},t.prototype._walkChunk=function(){for(var t=void 0,e=[this.proxyRoot];f.existy(t=e.shift());){var r=1===t.nodeType,n=r&&a(t,"proxyof");if(!n){r&&(this.actuals[a(t,"id")]=t,s(t,"id"));var o=t.parentNode&&a(t.parentNode,"proxyof");o&&this.actuals[o].appendChild(t)}e.unshift.apply(e,f.toArray(t.childNodes))}},t.prototype._handleScriptToken=function(t){var e=this,r=this.parser.clear();r&&this.writeQueue.unshift(r),t.src=t.attrs.src||t.attrs.SRC,t=this.options.beforeWriteToken(t),t&&(t.src&&this.scriptStack.length?this.deferredRemote=t:this._onScriptStart(t),this._writeScriptToken(t,function(){e._onScriptDone(t)}))},t.prototype._handleStyleToken=function(t){var e=this.parser.clear();e&&this.writeQueue.unshift(e),t.type=t.attrs.type||t.attrs.TYPE||"text/css",t=this.options.beforeWriteToken(t),t&&this._writeStyleToken(t),e&&this.write()},t.prototype._writeStyleToken=function(t){var e=this._buildStyle(t);this._insertCursor(e,y),t.content&&(e.styleSheet&&!e.sheet?e.styleSheet.cssText=t.content:e.appendChild(this.doc.createTextNode(t.content)))},t.prototype._buildStyle=function(t){var e=this.doc.createElement(t.tagName);return e.setAttribute("type",t.type),f.eachKey(t.attrs,function(t,r){e.setAttribute(t,r)}),e},t.prototype._insertCursor=function(t,e){this._writeImpl('');var r=this.doc.getElementById(e);r&&r.parentNode.replaceChild(t,r)},t.prototype._onScriptStart=function(t){t.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(t)},t.prototype._onScriptDone=function(t){return t!==this.scriptStack[0]?void this.options.error({"msg":"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,t.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)))},t.prototype._writeScriptToken=function(t,e){var r=this._buildScript(t),n=this._shouldRelease(r),o=this.options.afterAsync;t.src&&(r.src=t.src,this._scriptLoadHandler(r,n?o:function(){e(),o()}));try{this._insertCursor(r,m),r.src&&!n||e()}catch(t){this.options.error(t),e()}},t.prototype._buildScript=function(t){var e=this.doc.createElement(t.tagName);return f.eachKey(t.attrs,function(t,r){e.setAttribute(t,r)}),t.content&&(e.text=t.content),e},t.prototype._scriptLoadHandler=function(t,e){function r(){t=t.onload=t.onreadystatechange=t.onerror=null}function n(){r(),null!=e&&e(),e=null}function o(t){r(),a(t),null!=e&&e(),e=null}function i(t,e){var r=t["on"+e];null!=r&&(t["_on"+e]=r)}var a=this.options.error;i(t,"load"),i(t,"error"),u(t,{"onload":function(){if(t._onload)try{t._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){o({"msg":"onload handler failed "+e+" @ "+t.src})}n()},"onerror":function(){if(t._onerror)try{t._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){return void o({"msg":"onerror handler failed "+e+" @ "+t.src})}o({"msg":"remote script failed "+t.src})},"onreadystatechange":function(){/^(loaded|complete)$/.test(t.readyState)&&n()}})},t.prototype._shouldRelease=function(t){var e=/^script$/i.test(t.nodeName);return!e||!!(this.options.releaseAsync&&t.src&&t.hasAttribute("async"))},t}();e["default"]=g},function(t,e,r){!function(e,r){t.exports=r()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={"exports":{},"id":n,"loaded":!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var o=r(1),i=n(o);t.exports=i["default"]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=r(2),s=o(a),u=r(3),c=o(u),l=r(6),p=n(l),f=r(5),h={"comment":/^");if(e>=0)return new c.CommentToken(t.substr(4,e-1),e+3)}function o(t){var e=t.indexOf("<");return new c.CharsToken(e>=0?e:t.length)}function i(t){var e=t.indexOf(">");if(e!==-1){var r=t.match(l.startTag);if(r){var n=function(){var t={},e={},n=r[2];return r[2].replace(l.attr,function(r,o){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(t[arguments[5]]="",e[arguments[5]]=!0):t[o]=arguments[2]||arguments[3]||arguments[4]||l.fillAttr.test(o)&&o||"":t[o]="",n=n.replace(r,"")}),{"v":new c.StartTagToken(r[1],r[0].length,t,e,(!!r[3]),n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))}}();if("object"===("undefined"==typeof n?"undefined":u(n)))return n.v}}}function a(t){var e=i(t);if(e){var r=t.slice(e.length);if(r.match(new RegExp("\\s*"+e.tagName+"\\s*>","i"))){var n=r.match(new RegExp("([\\s\\S]*?)\\s*"+e.tagName+"\\s*>","i"));if(n)return new c.AtomicTagToken(e.tagName,n[0].length+e.length,e.attrs,e.booleanAttrs,n[1])}}}function s(t){var e=t.match(l.endTag);if(e)return new c.EndTagToken(e[1],e[0].length)}e.__esModule=!0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.comment=n,e.chars=o,e.startTag=i,e.atomicTag=a,e.endTag=s;var c=r(4),l={"startTag":/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,"endTag":/^<\/([\-A-Za-z0-9_]+)[^>]*>/,"attr":/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,"fillAttr":/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0,e.EndTagToken=e.AtomicTagToken=e.StartTagToken=e.TagToken=e.CharsToken=e.CommentToken=e.Token=void 0;var o=r(5),i=(e.Token=function t(e,r){n(this,t),this.type=e,this.length=r,this.text=""},e.CommentToken=function(){function t(e,r){n(this,t),this.type="comment",this.length=r||(e?e.length:0),this.text="",this.content=e}return t.prototype.toString=function(){return"